package cn.ml.web3.dao;

import cn.ml.web3.entity.Pagination;
import cn.ml.web3.entity.Student;

import java.util.List;
import java.util.Map;

public interface StudentDao {
    void save(Student student);
    Student get(int id);
    List<Student> list();
    List<Student> findByQuery(String sql,Object ...params);
    void update(Student student);
    void delete(int id);



    void listByPagination(Pagination<Student> pagination);
    //按条件查询并分页
    void listByPaginationAndParams(Pagination<Student> pagination, Map<String, String> params);
}

